package com.openatc.autoprogram.model;

import lombok.Data;

import java.util.List;

@Data
public class StatusPattern {
    private Integer                  mode;
    private String                   name;
    private Integer                  control;
    private Integer                  patternid;
    private Integer                  cycle;
    private Integer                  offset;
    private Integer                  curTime;
    private Integer                  syncTime;

    private List<List<Integer>>      stages;
    private List<Integer>            stages_time;
    private Integer                  total_stages;
    private Integer                  next_stage;

    private Integer                  current_stage;
    private List<Integer>            current_phase;
    private List<Integer>            current_phase_runtime;
    private List<Integer>            next_phase;

    private Integer                  control_running; //当前控制方式已运行的持续时间秒数，每秒更新一次
    private Integer                  control_remain; //当前控制方式离切换下一次控制方式的剩余的时间秒数，每秒更新一次（多时段时，离下一个时段的切换时长；手动控制时，离下一个控制方式的剩余时间）
    private Integer                  next_control; //下一个要切换的控制方式
    private Integer                  next_pattern; //下一个要切换的控制方案号
    private List<StatusPatternPhase>       phase;
    private List<StatusRing>         rings;

}
